home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / AECoerceDesc Bug < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.6 KB  |  [TEXT/ttxt]

  1. Subject:     AECoerceDesc Bug
  2. Sent:        6/7/96 1:34 PM
  3. Received:    6/7/96 1:51 PM
  4. From:        Ken Boyer, kboyer@itsnet.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. I have run up against a very strange bug when using ODF 1 and OpenDoc
  9. 1.0.4. Whenever AECoerceDesc is called and tries to coerce a desc to either
  10. typeAERecord, or typeAEList, the result desc is typeNull and no error is
  11. returned. At first I though that there was something wrong with my code, I
  12. have an AERecord of type 'typeTextStyles', that contains a 'keyAEOnStyles'
  13. and 'keyAEOffStyles' desc's. When it comes time to coerce it back to a
  14. AEList, AECoerceDesc gives me a typeNull desc and no error. When I look at
  15. the source desc, it is the same as the one that I created before the send.
  16. I have traced inside OpenDoc and found the same behavior happening there as
  17. well. In the method "SubstContainerForccnt" in the source file "OSLClAcc.c"
  18. it tries to convert a range desc into a AERecord, but the result is
  19. typeNull, then when it tries to get the keyAERangeStart desc it gets an
  20. error. I have looked at the source desc, and it appears to be correctly
  21. built range desc.
  22.  
  23. Because I had written my own semantic interface extension before ODF
  24. supported semantic events, I have set FW_SUPPORTS_EXTENSIONS 1 &
  25. FW_SUPPORTS_SCRIPTING 0. When I go back to my part that was based on DR11
  26. this behavior does not happen. Does ODF install a coercion handler that
  27. could cause this?
  28.  
  29. This bug has brought a number of features in my part to cease working. Is
  30. there a work around or a fix that I can use?
  31.  
  32. Ken Boyer
  33. Digital Harbor
  34.  
  35.